package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 风险等级对象 risk_level_data
 * 
 * @author ruoyi
 * @date 2022-10-01
 */
public class RiskLevelData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer ID;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 威胁等级，1-5级，1低级风险，2中低风险，3中风险，4高风险，5风险发生 */
    @Excel(name = "威胁等级，1-5级，1低级风险，2中低风险，3中风险，4高风险，5风险发生")
    private Integer ristLevel;

    /** 风险类型，用1-4分别表示盗掘、盗窃、火灾以及法人违法 */
    @Excel(name = "风险类型，用1-4分别表示盗掘、盗窃、火灾以及法人违法")
    private Integer ristType;

    /** 防护对象编码 */
    @Excel(name = "防护对象编码")
    private String protectionObjectCode;

    /** 异常事件列表"vehicle_ID,action_ID,tool_ID,fire_ID,vehicle_ID" */
    @Excel(name = "异常事件列表vehicle_ID,action_ID,tool_ID,fire_ID,vehicle_ID")
    private String anomalousEventType;

    /** 智能识别算法得分 */
    @Excel(name = "智能识别算法得分")
    private BigDecimal score;

    /** 其他描述 */
    @Excel(name = "其他描述")
    private String desc;

    /** 单位 */
    @Excel(name = "单位")
    private Long unit;

    private String org;

    /** 防区ID */
    @Excel(name = "防区ID")
    private Integer zoneId;

    public void setID(Integer ID) 
    {
        this.ID = ID;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public Integer getID()
    {
        return ID;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setRistLevel(Integer ristLevel) 
    {
        this.ristLevel = ristLevel;
    }

    public Integer getRistLevel() 
    {
        return ristLevel;
    }
    public void setRistType(Integer ristType)
    {
        this.ristType = ristType;
    }

    public Integer getRistType()
    {
        return ristType;
    }
    public void setProtectionObjectCode(String protectionObjectCode) 
    {
        this.protectionObjectCode = protectionObjectCode;
    }

    public String getProtectionObjectCode() 
    {
        return protectionObjectCode;
    }
    public void setAnomalousEventType(String anomalousEventType) 
    {
        this.anomalousEventType = anomalousEventType;
    }

    public String getAnomalousEventType() 
    {
        return anomalousEventType;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setUnit(Long unit) 
    {
        this.unit = unit;
    }

    public Long getUnit() 
    {
        return unit;
    }
    public void setZoneId(Integer zoneId) 
    {
        this.zoneId = zoneId;
    }

    public Integer getZoneId() 
    {
        return zoneId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("time", getTime())
            .append("ristLevel", getRistLevel())
            .append("ristType", getRistType())
            .append("protectionObjectCode", getProtectionObjectCode())
            .append("anomalousEventType", getAnomalousEventType())
            .append("score", getScore())
            .append("desc", getDesc())
            .append("unit", getUnit())
            .append("zoneId", getZoneId())
            .toString();
    }
}
